package com.pai4j.remote.user;

import com.pai4j.common.bean.PAIResponseBean;
import com.pai4j.domain.vo.request.chat.UpdateUserChatSettingRequestVO;
import com.pai4j.domain.vo.response.chat.UserChatSettingResponseVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(name = "pai4j-user-service", contextId = "userChatSettingClient")
public interface UserChatSettingClient {
    /**
     * 用户聊天设置服务接口
     */
    @PostMapping("/user-service/chat/setting/update")
    PAIResponseBean<Boolean> update(@RequestBody UpdateUserChatSettingRequestVO request);
  /**
     * 获取用户聊天设置
     *
     * @param ownerAccount 用户账号，表示设置的所有者
     * @param peerAccount 对方账号，表示聊天的对方
     * @return PAIResponseBean<UserChatSettingResponseVO> 响应结果，包含用户聊天设置的详细信息
     */
    @GetMapping("/user-service/chat/setting/get/{ownerAccount}/{peerAccount}")
    PAIResponseBean<UserChatSettingResponseVO> get(@PathVariable String ownerAccount,
                                                   @PathVariable String peerAccount);
}
